//
//  PYViewController.h
//  IHome
//
//  Created by zhujizheng on 2020/2/15.
//  Copyright © 2019年 com.zhujizheng. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface PYViewController : UIViewController

#pragma mark - 顶部白色遮罩
/// 顶部白色视图，用于遮住tableView的分割线
@property (nonatomic, strong) UIView *topWhiteView;
/// 调整topWhiteView的高度
- (void)adjustTopWhiteViewHeight:(CGFloat)height;

#pragma mark - 导航栏按钮
/// 设置导航栏返回按钮为箭头图标
- (UIBarButtonItem *)addBackArrowWithDefaultAction;
/// 默认返回事件
- (void)backAction;
/// 设置导航栏左边的按钮
- (UIBarButtonItem *)addLeftBarButtonItemWithTitle:(NSString *)title action:(nullable SEL)action;
/// 设置导航栏右边的按钮
- (UIBarButtonItem *)addRightBarButtonItem:(UIView *)customView;
/// 设置导航栏右边按钮，带图片，action
- (UIBarButtonItem *)addRightBarButtonItemWithImage:(UIImage *)img action:(nullable SEL)action;
/// 设置导航栏右边按钮，带文字，action
- (UIBarButtonItem *)addRightBarButtonItemWithTitle:(NSString *)title action:(nullable SEL)action;

#pragma mark - 添加通知
/// 添加通知
- (void)addNotifications;

#pragma mark - 状态栏变化通知
- (void)statusBarFrameChanged;

#pragma mark - 刷新红点
/// 刷新红点
- (void)refreshRedPoint;

#pragma mark - 是否需要在viewDidAppear之后刷新
- (BOOL)needRefreshViewAfterViewDidAppear;

#pragma mark - 是否需要返回箭头
- (BOOL)needBackArrow;

#pragma mark - 导航栏标题自动换行
- (BOOL)autoFitSizeForNaviTitle;

#pragma mark - 设置侧滑手势是否可用
/// 设置侧滑手势是否可用
- (void)setBackEdgeGestureEnabled:(BOOL)enabled;

#pragma mark - 气泡提示
- (void)showAutoHUD:(NSString *)text;
- (void)showIndicatorHUD:(NSString *)text;
- (void)hideHUD;
@end

NS_ASSUME_NONNULL_END
